﻿<%@ Page Language="C#" MasterPageFile="~/Template/ADMIN_XEMHANG.Master" AutoEventWireup="true" CodeBehind="quanlynhasanxuat.aspx.cs" Inherits="BTN04.ADMIN.quanlynhasanxuat" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 51px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="clpContenMenu" runat="server">
<table style="width: 598px; height: 244px;"  align="center">
        <tr>
            <td style="color:Green;text-align:center; font-weight: bold;font-size:large"  
                colspan="3" class="style1">
                QUẢN LÝ NHÀ SẢN XUẤT</td>
        </tr>
        <tr>
            <td style="color:Green;text-align:left ;" 
                >
                Nhập tên nhà sản xuất:  &nbsp; </td>
            <td style="color:Green;text-align:left; font-weight: bold;font-size:large">
                <asp:TextBox ID="txtTenNhaSanXuatMoi" runat="server" style="margin-left: 0px" 
                    Width="292px" Height="18px"></asp:TextBox>
                                                </td>
            <td style="color:Green;text-align:left; font-weight: bold;font-size:large">
                <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" Text="Thêm" 
                    Width="66px" />
                                                </td>
        </tr>
        <tr>
            <td class="style4" colspan="3">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
                    ForeColor="Black" Height="137px" PageSize="5" Width="551px" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    style="margin-top: 0px" BackColor="LightGoldenrodYellow" BorderColor="Red" 
                    BorderWidth="1px" CellPadding="2">
                    <Columns>
                        <asp:BoundField DataField="MaNhaSanXuat" HeaderText="Mã Nhà Sản Xuất" 
                            SortExpression="MaNhaSanXuat" />
                        <asp:BoundField DataField="TenNhaSanXuat" HeaderText="Tên Nhà Sản Xuất" 
                            SortExpression="TenNhaSanXuat" />
                        <asp:BoundField DataField="TenTinhTrangNhaSanXuat" 
                            HeaderText="Tình Trạng nhà sản xuất" SortExpression="TenTinhTrangNhaSanXuat" />
                        <asp:CommandField SelectText="Chọn" ShowSelectButton="True" >
                            <ItemStyle ForeColor="#33CC33" HorizontalAlign="Center" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <PagerStyle ForeColor="DarkSlateBlue" HorizontalAlign="Center" 
                        BackColor="PaleGoldenrod" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                    SelectMethod="ThongTinTinhTrangNhaSanXuat" 
                    TypeName="BTN04.BUS.TinhTrangNhaSanXuatBUS"></asp:ObjectDataSource>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="ThongTinToanBoNhaNhaSanXuat" TypeName="BTN04.BUS.NhaSanXuatBUS">
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td class="style4" colspan="3">
                <table style="color:red" align="center">
                    <tr>
                        <td class="style13">
                            Mã nhà sản xuất</td>
                        <td>
                            <asp:TextBox ID="txtMaNhaSanXuat" runat="server" Width="183px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            Tên nhà sản xuất</td>
                        <td>
                            <asp:TextBox ID="txtTenNhaSanXuat" runat="server" Width="207px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            Tình trạng nhà&nbsp; sản xuất
                        </td>
                        <td>
                            <asp:DropDownList ID="drTinhTrangNSX" runat="server" Width="183px" 
                                DataSourceID="ObjectDataSource2" DataTextField="TenTinhTrangNhaSanXuat" 
                                DataValueField="MaTinhTrangNhaSanXuat">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnSua" runat="server" Text="Sửa" Width="79px" 
                                onclick="btnSua_Click" /> &nbsp;&nbsp;
                            <asp:Button ID="btnXoa" runat="server" Text="Xóa" Width="84px" 
                                onclick="btnXoa_Click" style="height: 26px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style13">
                            &nbsp;</td>
                        <td>
                            <asp:Label ID="ThongBao2" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
